<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <title>Template Data and Directive</title>
</head>

<body> 
    
    <div id="app"> 
        <h1>Chapter 1</h1>
        <ul>
          <li v-for="(rent,city) in averageRent">
              {{city}}的平均租金是${{rent}}
          </li>
        </ul>    
    </div>
    <script>
        new Vue({
            el: '#app',
            data() {
                return {
                    averageRent:{
                       london:1650,
                       paris:1730,
                       NYC:3680 
                    }
                }
            }
        });

    </script> 
</body>
</html>
